﻿using NLog;
using Newtonsoft.Json;

namespace Web.Core.Extensions
{
    public static class NLogExtension
    {
        public static void Json<T>(this Logger logger, T target)
        {
            logger.Trace(JsonConvert.SerializeObject(target));
        }
    }
}